Hide the Create Folder button in recent-files mode when the pathbar is on
authorFederico Mena Quintero <federico@gnome.org>
Fri, 1 Jul 2011 19:54:11 +0000 (14:54 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Sat, 2 Jul 2011 00:07:12 +0000 (19:07 -0500)
The create-folder machinery doesn't handle that case yet; we may enable it later
once we figure out the implications for the GUI.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserdefault.c

index 213471515a98f14a8de4cedf8bcfc745180cf23a..aab4b04b04a36175081826d059d4b8c1aaf8ba3d 100644 (file)
@@ -4898,7 +4898,9 @@ path_bar_set_mode (GtkFileChooserDefault *impl, PathBarMode mode)
 
   if (path_bar_visible)
     {
-      if (impl->create_folders && impl->action != GTK_FILE_CHOOSER_ACTION_OPEN)
+      if (impl->create_folders
+         && impl->action != GTK_FILE_CHOOSER_ACTION_OPEN
+         && impl->operation_mode != OPERATION_MODE_RECENT)
        create_folder_visible = TRUE;
     }